<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue原理(数据劫持+订阅与发布)</title>
</head>

<body>
  <div id="app">
    <span>书名：{{name}}</span>
    <input type="'text" v-model="name">
    <span>更多：{{more.like}}</span>
    <input type="'text" v-model="more.like">
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        name: '理想国',
        more: {
          like: '点击查看'
        }
      }
    })

    console.log(vm, 'vmvmvm');
  </script>
</body>

</html>